export const computeHeight = (adjustment = 0) => window.innerHeight - adjustment;

export const computeWidth = (adjustment = 0) => window.innerWidth - adjustment;

export const getInitials = (name = '') => (
    name.replace(/\s+/, ' ').split(' ').slice(0, 2)
    .map(v => v && v[0].toUpperCase()).join('')
);

export const getFullName = (fName, lName) => {
    return `${!!fName ? fName : ''} ${!!lName ? lName : ''}`.trim();
}
